﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace iver.Controllers
{

    /// <summary>
    /// 根据某一个参数查询结果，多用于查找对象或单条结果
    /// </summary>
    /// <typeparam name="T">类型根据请求而定</typeparam>
    public class ReqID<T>
    {
        /// <summary>
        /// 按需求自行编写
        /// </summary>
        public T id { set; get; }
    }
    /// <summary>
    /// 查询列表
    /// </summary>
    public class ReqList
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int page { set; get; }
        /// <summary>
        /// 每页条数
        /// </summary>
        public int limit { set; get; }
    }
    public class ReqListQuery : ReqList
    {
        /// <summary>
        /// 查询列表扩展字段
        /// </summary>
        public Nullable<int> id { set; get; }
    }
    /// <summary>
    /// 验证码请求参数
    /// </summary>
    public class ReqImgCode
    {
        /// <summary>
        /// 字体大小
        /// </summary>
        public int fontsize { set; get; }
        /// <summary>
        /// 每个字占用空间
        /// </summary>
        public int width { set; get; }
        /// <summary>
        /// 高度
        /// </summary>
        public int height { set; get; }

    }
    /// <summary>
    /// 读取文件数据库
    /// </summary>
    public class ReqKeyValuePair
    {
        /// <summary>
        /// 表名 文件名
        /// </summary>
        public string name { set; get; }
        /// <summary>
        /// json字符串
        /// </summary>
        public string jsonString { set; get; }

    }
}